import { Injectable } from '@nestjs/common';
import { AppDataSource, entities } from './dataSource';
import { Observable } from 'rxjs';
import { AxiosResponse } from 'axios';

@Injectable()
export class AppService {
  constructor() {}
  getHello(): string {
    console.log('holy shit');
    return 'Hello World! 王德发厚礼蟹';
  }
  async getHello2(): Promise<any[]> {
    const [] = entities;
    // const data = await AppDataSource.manager.find({});
    return [];
  }
}
